from fastapi import APIRouter
from backend.models import Movie
from backend.scheams import Movie_Pydantic

movie = APIRouter(tags=["电影相关"])


@movie.get("/movie", summary="电影列表", response_model=[Movie_Pydantic])
async def movies_list():
    return await Movie_Pydantic.from_queryset(Movie.all())


@movie.post("/movie", summary="添加电影")
async def movies_add():
    pass


@movie.put("/movie", summary="更改电影")
async def movies_update():
    pass


@movie.delete("/movie", summary="删除电影")
async def movies_delete():
    pass
